package cn.nexd.app.collector.model;

import android.os.Parcel;
import android.os.Parcelable;


/**
 * Created by wangxu on 16/12/8.
 */

public class FloorLayer implements  Parcelable {


    /**
     * floorLayer : 0   用来排序
     * floorName : B1   楼层名称
     * floorId : 101001230001  楼层编号
     * mallId : 10100123 商场编号，外键关联商场数据
     */


    private int floorLayer;
    private String floorName;
    private long floorId;
    private long mallId;


    public FloorLayer() {
    }


    protected FloorLayer(Parcel in) {
        floorLayer = in.readInt();
        floorName = in.readString();
        floorId = in.readLong();
        mallId = in.readLong();
    }

    public static final Creator<FloorLayer> CREATOR = new Creator<FloorLayer>() {
        @Override
        public FloorLayer createFromParcel(Parcel in) {
            return new FloorLayer(in);
        }

        @Override
        public FloorLayer[] newArray(int size) {
            return new FloorLayer[size];
        }
    };

    public int getFloorLayer() {
        return floorLayer;
    }

    public void setFloorLayer(int floorLayer) {
        this.floorLayer = floorLayer;
    }

    public String getFloorName() {
        return floorName;
    }

    public void setFloorName(String floorName) {
        this.floorName = floorName;
    }

    public long getFloorId() {
        return floorId;
    }

    public void setFloorId(long floorId) {
        this.floorId = floorId;
    }

    public long getMallId() {
        return mallId;
    }

    public void setMallId(long mallId) {
        this.mallId = mallId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(floorLayer);
        parcel.writeString(floorName);
        parcel.writeLong(floorId);
        parcel.writeLong(mallId);
    }

    @Override
    public String toString() {
        return "FloorLayer{" +
                "floorLayer=" + floorLayer +
                ", floorName='" + floorName + '\'' +
                ", floorId=" + floorId +
                ", mallId=" + mallId +
                '}';
    }

}
